package com.zsy.oauth2.service;

import com.zsy.base.bean.DemoResult;

public interface AuthService {

    /**登陆服务
     * @Author zhaoshouyun
     * @Description
     * @Date 2020-04-17 05:36
     * @Param username 用户名
     * @Param password 密码
     * @Param clientId clientID
     * @Param clientSecret secret
     * @return com.zsy.base.bean.DemoResult
     **/
    DemoResult login(String username, String password, String clientId, String clientSecret);
    /**
     * @Author zhaoshouyun
     * @Description  刷新token
     * @Date 2020-04-27 03:13
     * @Param refreshToken
     * @Param clientId
     * @Param clientSecret
     * @return com.zsy.base.bean.DemoResult
     **/
    DemoResult refreshToken(String refreshToken, String clientId, String clientSecret);
}
